﻿
window.onsubmit = loading;
window.onunload = loading;
window.onload = loading;
jQuery(window).load(function () {
    jQuery('#loading2').hide();
});
function loading() {
    var img = document.getElementById('img_loading'); 
    var widths = img.clientWidth;
    var heights = img.clientHeight;
    document.getElementById('loading2').style.display = 'block';
    document.getElementById('loading2').style.left = '50%';
    document.getElementById('loading2').style.top = '50%';
    document.getElementById('loading2').style.position = 'fixed';
    document.getElementById('loading2').style.zIndex = 10000;
    document.getElementById('loading2').style.marginTop=-heights;
    document.getElementById('loading2').style.marginLeft = -widths;
    document.getElementById('loading2').style.background='white';
            
}

function stripHTML() {
    var re = /(<[^>]*>)/gi;
    for (i = 0; i < arguments.length; i++)
        arguments[i].value = arguments[i].value.replace(re, "")
}